package com.study.design.pattern.pattern.behavioral.chainofresponsibility;

/**
 * @Author: gongsl
 * @Date: 2025-03-25 23:46
 * @description: 处理者抽象类
 */
public abstract class LeaveHandler {
    protected LeaveHandler nextHandler;

    public void setNextHandler(LeaveHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void handleRequest(int leaveDays);
}
